package com.lxu.handlers;

import com.lxu.entity.monster.Dragon;
import com.lxu.entity.monster.Elf;
import com.lxu.entity.monster.Monster;
import com.lxu.entity.player.Dragoon;
import com.lxu.entity.player.Fighter;
import com.lxu.entity.player.Player;
import com.lxu.entity.weapon.Staff;
import com.lxu.entity.weapon.Weapon;

public class Test {
    public static void main(String[] args) {
        Player player = new Fighter();
        Weapon weapon = new Staff(10);
        player.setWeapon(weapon);
        Monster monster = new Dragon(100);
        player.attack(weapon, monster);
        System.out.println("怪兽被攻击后的血量为：" + monster.getBlood());
    }
}
